/*
 * @Author: wcx 1055127249@qq.com
 * @Date: 2025-01-07 17:32:53
 * @LastEditors: wcx 1055127249@qq.com
 * @LastEditTime: 2025-01-09 13:48:02
 * @FilePath: \my-project\src\views\CreateProcess\register\edge.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { Graph, Shape } from '@antv/x6'
Graph.registerEdge(
  'bpmn-edge',
  {
    attrs: {
      line: {
        stroke: '#A2B1C3',
        strokeWidth: 2,
      },
    },
    zIndex: 0,
  },
  true,
)

export default function (data) {
  return new Shape.Edge({
    attrs: {
      line: {
        stroke: '#A2B1C3',
        strokeWidth: 2,
      },
    },
    zIndex: 0,
  });
}